/**
 * 账单记录
 */
export interface IBillRecord {
  id?: number;
  bookName: string;
  type: IBillType | string;
  category: string;
  date: string;
  location: string;
  payAccount: string;
  amount: number;
  content: string;
  remark: string;
  imageList: string[];
}

/**
 * 账户类型
 */
export interface IBillPay {
  id?: number;
  name: string;
  icon: string;
  color?: string;
}

/**
 * 账本类型
 */
export interface IBillBook {
  id?: number;
  name: string;
  label?: string;
  icon: string;
  color?: string;
}

/**
 * 账单类别
 */
export interface IBillCategory {
  id?: number;
  bookName: string;
  name: string;
  type: string;
  icon: string;
  color?: string;
}

/**
 * 查询账单
 */
export interface IBillQuery {
  bookName?: string;
  type?: IBillType;
  startDate: string;
  endDate: string;
}

export interface IBillCalendarDaily {
  dailyRecordList: IBillRecord[];
  totalExpensive: number;
  totalIncome: number;
}

export interface IBillSummaryStats {
  expensive: number;
  income: number;
  balance: number;
  rate: number;
}

export type IBillType = 'expensive' | 'income' | ''
